package com.alstudio.ui.config;

import java.io.Serializable;

import android.view.View;

public class BaseTitleActivityConfig implements Serializable {

	/**
		 * 
		 */
	private static final long serialVersionUID = -7758484909536738829L;

	public static final int INVALID_RES_PARAM = -1;

	private int titleRes = INVALID_RES_PARAM;
	private String title;

	private int leftBtLableRes = INVALID_RES_PARAM;
	private String leftBtLable;
	private int rightBtLableRes = INVALID_RES_PARAM;
	private String rightBtLable;

	private int customTitleBar = INVALID_RES_PARAM;
	private int leftBtBgRes = INVALID_RES_PARAM;
	private int rightBtBgRes = INVALID_RES_PARAM;

	private boolean hideRightBtRequest = false;
	private boolean hideLeftBtRequest = false;

	private boolean useLeftImageBt = false;
	private boolean useRightImageBt = false;

	private int leftImageBtRes = INVALID_RES_PARAM;
	private int rightImageBtRes = INVALID_RES_PARAM;

	private int leftImageBtSrc = INVALID_RES_PARAM;
	private int rightImageBtSrc = INVALID_RES_PARAM;

	private View customLeftView = null;
	private View customRightView = null;
	private View customTitleBarView = null;

	private boolean isHideTitleBarRequest = false;

	public BaseTitleActivityConfig() {
		// TODO Auto-generated constructor stub
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setTitle(int res) {
		this.titleRes = res;
	}

	public String getTitle() {
		return this.title;
	}

	public int getTitleRes() {
		return this.titleRes;
	}

	public void setLeftBtLable(String label) {
		this.leftBtLable = label;
	}

	public void setLeftBtLable(int res) {
		this.leftBtLableRes = res;
	}

	public String getLeftBtLable() {
		return this.leftBtLable;
	}

	public int getLeftBtLableRes() {
		return this.leftBtLableRes;
	}

	public void setRightBtLable(String lable) {
		this.rightBtLable = lable;
	}

	public void setRightBtLable(int res) {
		this.rightBtLableRes = res;
	}

	public String getRightBtLable() {
		return this.rightBtLable;
	}

	public int getRightBtLableRes() {
		return this.rightBtLableRes;
	}

	public void setLeftBtBgRes(int id) {
		this.leftBtBgRes = id;
	}

	public int getLeftBtBgRes() {
		return this.leftBtBgRes;
	}

	public void setRightBtBgRes(int id) {
		this.rightBtBgRes = id;
	}

	public int getRightBtBgRes() {
		return this.rightBtBgRes;
	}

	public void setCustomTitleBarRes(int id) {
		this.customTitleBar = id;
	}

	public int getCustomTitleBarRes() {
		return this.customTitleBar;
	}

	public void setLeftCustomView(View v) {
		this.customLeftView = v;
	}

	public View getLeftCustomView() {
		return this.customLeftView;
	}

	public void setRightCustomView(View v) {
		this.customRightView = v;
	}

	public View getRightCustomView() {
		return this.customRightView;
	}

	public void setCustomTitleBarView(View v) {
		this.customTitleBarView = v;
	}

	public View getCustomTitleBarView() {
		return this.customTitleBarView;
	}

	/**
	 * 设定右边按钮显示状态
	 * 
	 * @param hide
	 *            true 表示隐藏右边按钮，false表示显示右边按钮
	 * @author Alonso Lee
	 */
	public void hideRightButton(boolean hide) {
		this.hideRightBtRequest = hide;
	}

	public boolean isRightButtonHideRequest() {
		return this.hideRightBtRequest;
	}

	public void hidLeftButton(boolean hide) {
		this.hideLeftBtRequest = hide;
	}

	public boolean isLeftButtonHideRequest() {
		return this.hideLeftBtRequest;
	}

	public void setTitleBaHiderRequest(boolean request) {
		this.isHideTitleBarRequest = request;
	}

	public boolean isTitleBarHideRequest() {
		return this.isHideTitleBarRequest;
	}

	public void useLeftImageBt(boolean state) {
		this.useLeftImageBt = state;
	}

	public boolean isUseLeftImageBt() {
		return this.useLeftImageBt;
	}

	public void useRightImageBt(boolean state) {
		this.useLeftImageBt = state;
	}

	public boolean isUseRightImageBt() {
		return this.useRightImageBt;
	}

	public void setLeftImageBtBgRes(int res) {
		this.leftImageBtRes = res;
	}

	public int getLeftImageBtBgRes() {
		return this.leftImageBtRes;
	}

	public void setRightImageBtBgRes(int res) {
		this.rightImageBtRes = res;
	}

	public int getRightImageBtBgRes() {
		return this.rightImageBtRes;
	}

	public void setLeftImageBtSrc(int src) {
		this.leftImageBtSrc = src;
	}

	public int getLeftImageBtSrc() {
		return this.leftImageBtSrc;
	}

	public void setRightImageBtSrc(int src) {
		this.rightImageBtSrc = src;
	}

	public int getRightImageBtSrc() {
		return this.rightImageBtSrc;
	}

}
